package com.jz.digital.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jz.digital.R
import com.jz.digital.bean.UserInfo
import com.jz.digital.view.OptionView


/**
 * ================================================
 * Created: WangYong
 * Date: 2024/11/19
 * Description:
 * ================================================
 */
class HomeEntranceAdapter(data: MutableList<UserInfo.PermissionBean>) :
    BaseQuickAdapter<UserInfo.PermissionBean, BaseViewHolder>(
        R.layout.item_home_entrance_layout, data
    ) {
    override fun convert(holder: BaseViewHolder, item: UserInfo.PermissionBean) {
        val optionView = holder.getView<OptionView>(R.id.option_view)
//        optionView.setStartImageResource(item.icon)
        optionView.startText = item.featuresDesc
        optionView.setDeviderLineVisible(holder.layoutPosition != data.size - 1)
    }
}